import service from '@/utils/request';
import config from '@/config/index.js';



const servletMap =[
    ['/material/info/update-like','updateLike','put'],
    ['/material/info/add-frequency','addFrequency','put'],
    ['/material/info/update-like','updateLike','put'],
    ['/material/info/my-like','myLike','get'],
    // ['/material/info/material-by-columnId','materialList','get'],
    ['/material/info/index-list','indexList','get'],
    ['/material/info/hot-infos','hotInfos','get'],

    ['/material/info/get-zip-download','getZip','get'],
    ['/material/info/get-like-status','getLikeStatus','get'],
    ['/material/info/get-info-index','getInfoIndex','get'],
    ['/material/info/detail-page','detail','get'],

    ['/material/info/about-infos','aboutInfos','get'],
    ['/material/info/batch-delete','batchDelete','delete'],
    ['/material/info/index-list','infoList','get'],
]
let obj = {};
for (let i in servletMap) {
	obj[servletMap[i][1]] = function() {
		return service[servletMap[i][2]](servletMap[i][0], ...arguments);
	};
}

export default obj